-- GENERATED SPELL FOR [Scarlet Champion] --


function spell0_29080(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29080', 608, 1)
end

function spell1_29080(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(52566,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29080', 665, 1)
end

function Sorts_29080(pUnit, Event)
local choix_sorts_29080 = math.random(0, 1)
if choix_sorts_29080 == 0 then
pUnit:RegisterEvent('spell0_29080', 1, 1)
end
if choix_sorts_29080 == 1 then
pUnit:RegisterEvent('spell1_29080', 1, 1)
end
end

function mob29080_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29080', math.random(1500, 3000), 1)
end

function mob29080_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29080_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29080_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29080, 1, 'mob29080_Action')
RegisterUnitEvent(29080, 2, 'mob29080_Leave')
RegisterUnitEvent(29080, 3, 'mob29080_Kill')
RegisterUnitEvent(29080, 4, 'mob29080_Die')
